home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cm100exe.zip
/
CM100EXE.EXE
/
SAMPLES
/
WINDOWS
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1991-11-16
|
3KB
|
81 lines
/*****************************************************************************
* MAKEFILE
*
* PURPOSE: Build the following modules:
*
* "hw.res"
* "hw.obj"
* "hw.exe"
*
* NOTE: None of the comments in this make file are required. They have
* been provided to help you understand how CMAKE handles each
* command. In other words, this make file could be reduced down to
* the following four commands:
*
* rc /r hw.rc
* cl /c /AS /Gsw /Oas /Zpe hw.c
* link @hw.lnk
* rc hw.res
*
*****************************************************************************/
/*****************************************************************************
* HW.RES
*
* The following RC compile command will be executed only when one of the
* following conditions is true:
*
* 1. "hw.res" does not exist.
* 2. "hw.rc" is newer than "hw.res".
* 3. "hw.h" is newer than "hw.res".
* 4. "hw.ico" is newer than "hw.res".
* 5. "hw.dlg" is newer than "hw.res".
*
*****************************************************************************/
rc /r hw.rc
/*****************************************************************************
* HW.OBJ
*
* The following CL command will be executed only when one of the
* following conditions is true:
*
* 1. "hw.obj" does not exist.
* 2. "hw.c" is newer than "hw.obj".
* 3. "hw.h" is newer than "hw.obj".
*
*****************************************************************************/
cl /c /AS /Gsw /Oas /Zpe hw.c
/*****************************************************************************
* HW.EXE
*
* The following LINK command will be executed only when one of the
* following conditions is true:
*
* 1. "hw.exe" does not exist.
* 2. "hw.obj" is newer than "hw.exe".
* 3. "c:\windev\lib\libw.lib" is newer than "hw.exe".
* 4. "c:\windev\lib\slibcew.lib" is newer than "hw.exe".
* 5. "hw.def" is newer than "hw.exe".
*
*****************************************************************************/
link @hw.lnk
/*****************************************************************************
* ADD HW.RES TO HW.EXE
*
* The following RC command (used to add the resource file, "hw.res",
* to the executable file, "hw.exe") will be executed only when one of
* the following conditions is true:
*
* 1. The previous RC command used to build, "hw.res", was executed.
* 2. The previous LINK command used to build, "hw.exe", was executed.
*
*****************************************************************************/
rc hw.res